package com.designpattern.behavior.observer;

/**
 * @author Administration
 * @date 2021/10/26 - 14:22 - 星期二
 * @project 行为型模式中得 观察者模式  具体观察者
 * @package com.designpattern.behavior.observer
 * @by 晨
 */
public class WeixinUser implements Observer{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public WeixinUser() {
    }

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
